home *** CD-ROM | disk | FTP | other *** search
/ Knitting Made Easy / Knitting.iso / App / Patterns.dxr / Internal_43_Go to Movie X.ls < prev    next >
Encoding:
Text File  |  2002-04-18  |  1.6 KB  |  30 lines

  1. property myTargetMovie
  2.  
  3. on getBehaviorDescription me
  4.   return "PLAY MOVIE X" & RETURN & RETURN & "Drop this behavior onto  a Sprite, the Stage or into the Script Channel of the Score to start a sequence and move the playback head to a given movie." & RETURN & RETURN & "Use the 'Play Done' behavior to end the sequence and to tell the playback head to return to the current frame." & RETURN & RETURN & "PARAMETERS:" & RETURN & "* Play which movie on mouseUp?" & RETURN & RETURN & "If the target movie is in the same folder as the current movie then you need only enter the name of the movie.  If the  movie is in a different folder, then enter the full or relative path name to  the target movie." & RETURN & RETURN & "ASSOCIATED BEHAVIORS:" & RETURN & "+ Play Frame X" & RETURN & "+ Play Done"
  5. end
  6.  
  7. on getBehaviorTooltip me
  8.   return "Use with graphic members or as a frame behavior." & RETURN & RETURN & "Jumps the playback head to the given movie.  Acts" & RETURN & "on mouseUp or on exitFrame, depending on whether" & RETURN & "you drag it to a sprite or to the Stage." & RETURN & RETURN & "Use the 'Play Done' behavior to return to this frame."
  9. end
  10.  
  11. on mouseUp me
  12.   go(1, myTargetMovie)
  13. end
  14.  
  15. on exitFrame me
  16.   if the currentSpriteNum = 0 then
  17.     go(1, myTargetMovie)
  18.   end if
  19. end
  20.  
  21. on getPropertyDescriptionList me
  22.   if the currentSpriteNum = 0 then
  23.     theComment = "Play which movie on exitFrame?"
  24.   else
  25.     theComment = "Play which movie on mouseUp?"
  26.   end if
  27.   theComment = theComment & RETURN & "(Include path if necessary)."
  28.   return [#myTargetMovie: [#comment: theComment, #format: #movie, #default: "Type the name of your movie here"]]
  29. end
  30.